import request from '@/utils/request'
import {SERVICE_URL} from '@/config/index.js'

//  发送短信
export function siteSmsCode (data) {
	return request.post({
		url: SERVICE_URL + '/v1/site/sms-code',
		data
	})
}


//  用户注册
export function siteRegister (data) {
	return request.post({
		url: SERVICE_URL + '/v1/site/register',
		data
	})
}

//  重置密码验证码
export function siteResetSmsCode (data) {
	return request.post({
		url: SERVICE_URL + '/v1/site/sms-rf-code',
		data
	})
}

//  重置密码
export function siteReset (data) {
	return request.post({
		url: SERVICE_URL + '/v1/site/up-pwd',
		data
	})
}

//  用户登录
export function siteLogin (data) {
	return request.post({
		url: SERVICE_URL + '/v1/site/login',
		data: {...data, group: 'app'}
	})
}


//  系统更新
export function getAppUpdateInfo (data) {
	return request.get({
		url: SERVICE_URL + '/v1/site/app-update-info',
		data
	})
}

// 关于我们
export function getAboutUsContent () {
	return request.get({
		url: SERVICE_URL + '/v1/site/about-me'
	})
}

//签到
export function getsignin (data) {
	return request.get({
		url: SERVICE_URL + '/v1/trade/strategy/signin',
		data
	})
}
//获取签到天数
export function getsigninday (data) {
	return request.get({
		url: SERVICE_URL + '/v1/trade/strategy/signinday',
		data
	})
}
//获取积分
export function useraCcumulate (data) {
	return request.get({
		url: SERVICE_URL + '/v1/trade/strategy/useraccumulate',
		data
	})
}
//积分详情
export function accumlateinfo (data) {
	return request.get({
		url: SERVICE_URL + '/v1/trade/strategy/accumlateinfo',
		data
	})
}
//分享成功
export function shareinfo (data) {
	return request.get({
		url: SERVICE_URL + '/v1/trade/strategy/share-app',
		data
	})
}

